<?php
namespace app\admin\controller;

class Index extends Comm
{
    public function index()
    {
        $info = model('Member')
        ->alias('a')
        ->join('group g','a.gid=g.gid && a.uname="'.session('uname').'"')
        ->select();
        $gname = $info[0]->gname;
        $this->assign('gname',$gname);
        return $this->fetch(); 
    }
}
